home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 March / PCWMAR09.iso / Software / Freeware / Adobe Media Player 1.6 / adobe_media_player.air / AMP.swf / scripts / _ComboBoxStyle.as < prev    next >
Encoding:
Text File  |  2008-11-25  |  1.2 KB  |  43 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ComboBoxArrowSkin;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _ComboBoxStyle
  9.    {
  10.       public function _ComboBoxStyle()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          var fbs:IFlexModuleFactory = param1;
  18.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ComboBox");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration("ComboBox",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.skin = ComboBoxArrowSkin;
  29.                this.paddingLeft = 5;
  30.                this.fontWeight = "bold";
  31.                this.disabledIconColor = 9542041;
  32.                this.cornerRadius = 5;
  33.                this.arrowButtonWidth = 22;
  34.                this.paddingRight = 5;
  35.                this.leading = 0;
  36.                this.dropdownStyleName = "comboDropdown";
  37.             };
  38.          }
  39.       }
  40.    }
  41. }
  42.  
  43.